package com.lixy.demo.springcloud.ch7_2_5.controller;

import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import org.springframework.beans.factory.annotation.Autowired;

import com.lixy.demo.springcloud.ch7_2_5.vo.User;

@RestController
public class MovieController {

	@GetMapping("/user/{id}")
	public User findById( @PathVariable Long id ) {
		return this.client.findById( id );
	}
	
	@Autowired
	private UserFeignClient client;
}
